const state = {
    num : 1
};

const getters = {
    doubleNum(state){
        return state.num*2
    }
};

const mutations = {
    increments(state,index){
        state.num = state.num*index
    }
};

const actions = {
    increments(context,index){
        context.commit('increments',index)
    }
};

export default {state,getters,mutations,actions}